<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">
	<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
	<xsl:param name="URL" />
	<xsl:template match="/*">
		<rss version="2.0">
			<channel>
				<title>
					<xsl:value-of select="ContentProperties/Title"/>
				</title>
				<link><xsl:value-of select="$URL" /></link>
				<description>
					<xsl:value-of select="ContentProperties/Description"/>
				</description>
				<xsl:for-each select="Sections/Section">
					<item>
						<title><xsl:value-of select="@Title" /></title>
						<link><xsl:value-of select="concat($URL, '#', translate(@Title, ' ', ''))" /></link>
						<pubDate><xsl:value-of select="@LastModified" /></pubDate>
						<description><xsl:value-of select="substring(., 0, 200)" /><xsl:value-of select="'...'" /></description>
					</item>
				</xsl:for-each>
			</channel>
		</rss>
	</xsl:template>
</xsl:stylesheet>
